package com.maixin.code.action;

import java.util.List;

import com.maixin.code.base.BaseAction;
import com.maixin.code.entity.Users;
import com.maixin.code.service.UsersService;

public class UsersListAction  extends BaseAction{
	private static final long serialVersionUID = 1L;
	
	private UsersService usersSer;
	private List<Users> list;
	private  Integer cnt;
	
	public String findUsersListByRole(){
		list = usersSer.getUsersDAO().findUsersByDept("1", start, limit);
		cnt = usersSer.getBaseDao().findTabCnt(Users.class);
		return SUCCESS;
	}
	

	public UsersService getUsersSer() {
		return usersSer;
	}

	public void setUsersSer(UsersService usersSer) {
		this.usersSer = usersSer;
	}


	public List<Users> getList() {
		return list;
	}


	public void setList(List<Users> list) {
		this.list = list;
	}


	public Integer getCnt() {
		return cnt;
	}


	public void setCnt(Integer cnt) {
		this.cnt = cnt;
	}
	
	

}
